package com.example.multity

import android.annotation.SuppressLint
import android.os.Bundle
import android.widget.Button
import android.widget.TextView
import androidx.activity.ComponentActivity
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import org.w3c.dom.Text

class SecondActivity : ComponentActivity()  {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_second)
        val intent=getIntent()
        val backbutton=findViewById<Button>(R.id.back)
        val textView=findViewById<TextView>(R.id.textView)
        textView.text=intent.getStringExtra(FIRST_MSG)
        backbutton.setOnClickListener {
            finish()
        }

    }
}